USE Master

ALTER DATABASE RockBusDb SET ENABLE_BROKER


USE RockBusDb

CREATE QUEUE RequestQueue
WITH STATUS = ON , RETENTION = OFF

CREATE QUEUE ReplyQueue
WITH STATUS = ON , RETENTION = OFF

CREATE SERVICE RequestWriter
ON QUEUE RequestQueue
(
[DEFAULT]
)

CREATE SERVICE RequestReader
ON QUEUE RequestQueue
(
[DEFAULT]
)

CREATE SERVICE ReplyWriter
ON QUEUE ReplyQueue
(
[DEFAULT]
)

CREATE SERVICE ReplyReader
ON QUEUE ReplyQueue
(
[DEFAULT]
)
